const login = r => require.ensure([], () => r(require('../module/system/login.vue')), 'system');
const test = r => require.ensure([], () => r(require('../module/system/test.vue')), 'system');
const example_pool = r => require.ensure([], () => r(require('../module/example_pool/example_pool.vue')), 'module');
//大咖
const teacher = r => require.ensure([], () => r(require('../module/discover/cast/teacher.vue')), 'module');
const cast_detail = r => require.ensure([], () => r(require('../module/discover/cast/detail.vue')), 'module');
//发现-写日记
const writeDiary = r => require.ensure([], () => r(require('../module/discover/diary/write.vue')), 'module');

export default [ //公共
    {
        path: '/', component: login
    },
    {
      path: '/test', component: test
    },
    {
      path: '/example/pool', component: example_pool
    },
    {
      path: '/discover/cast/teacher', component: teacher
    },
    {
      path: '/discover/cast/detail', component: cast_detail
    },
    {
      path: '/discover/diary/write', component: writeDiary
    }
]
